comparison test for convergence and divergence